]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lg: Replace remaining Color.init_from_4ub usage
authorBilal Elmoussaoui <belmouss@redhat.com>
Fri, 16 Feb 2024 22:41:38 +0000 (23:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 17 Feb 2024 10:46:37 +0000 (10:46 +0000)
Fixes cd33baff7d285af26475777fab1f59537c517cb5

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3197>

js/ui/lookingGlass.js

index 043d2fa5ecf3b60430da388057cdb311ca82d62a..c85f3ecbd92c8e449a83a35d648a82ea07b76dc7 100644 (file)
@@ -539,7 +539,7 @@ class RedBorderEffect extends Clutter.Effect {
             const coglContext = framebuffer.get_context();
 
             let color = new Cogl.Color();
-            color.init_from_4ub(0xff, 0, 0, 0xc4);
+            color.init_from_4f(1.0, 0.0, 0.0, 196.0 / 255.0);
 
             this._pipeline = Cogl.Pipeline.new(coglContext);
             this._pipeline.set_color(color);